sched: fix resuming from S3 with smt=0
authorJuergen Gross <jgross@suse.com>
Wed, 8 Jan 2020 13:59:25 +0000 (14:59 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 8 Jan 2020 13:59:25 +0000 (14:59 +0100)
commitd7f3c76317108ee9989f00545d394fa495fba752
tree91bf66a16e437a44b6711ff3271e3c85ce0e4fae
parent4dde27b6e0a0b0dcb8fdfc7580fbd9c976aa103f
sched: fix resuming from S3 with smt=0

When resuming from S3 and smt=0 or maxcpus= are specified we must not
do anything in cpu_schedule_callback(). This is not true today for
taking down a cpu during resume.

If anything goes wrong during resume all the scheduler related error
handling is in cpupool.c, so we can just bail out early from
cpu_schedule_callback() when suspending or resuming.

This fixes commit 0763cd2687897b55e7 ("xen/sched: don't disable
scheduler on cpus during suspend").

Reported-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Tested-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: George Dunlap <george.dunlap@citrix.com>
xen/common/schedule.c